export function searchColumns() {
  return [
    {
      prop: 'dateRange',
      type: 'daterange',
    },
  ]
}

export function tableColumns() {
  return [
    {
      label: '序号',
      prop: 'id',
      width: 80,
    },
    {
      width: 140,
      label: '日期',
      prop: 'commit_time',
      formatter: row => this.$formatTime(row?.commit_time),
    },
    {
      width: 140,
      label: 'IP',
      prop: 'ip',
    },
    {
      width: 140,
      label: '地区',
      prop: 'district',
    },
    {
      width: 140,
      label: '用户ID',
      prop: 'unique_id',
    },
    {
      align: 'left',
      width: 200,
      label: '邮箱',
      prop: 'email',
    },
    {
      align: 'left',
      label: '问题描述',
      prop: 'description',
      overHidden: true,
    },
  ]
}
